﻿using Pay.DTO;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace Pay.IService {
   public interface ICourseService {
        PagedResult<course_dto> Gets(CourseQuery query);
        bool Save(course_dto dto);
        bool Delete(long id);
        bool Enable(long id, bool isEnable);
        course_dto Get(long id);
        /// <summary>
        /// 获取我的课程列表
        /// </summary>
        /// <param name="query"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        PagedResult<marketing_course_list_model> GetMyCoursePageList(MarketingCourseQuery query, long userId);

        /// <summary>
        /// 获取课程
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        marketing_course_model GetCourseById(long id);
    }
}
